

import api from '@/http/index'

/* 获取门店入库清单列表*/
export const getTablesList = (data) => {
    return new Promise((resolve, reject) => {
        api.get('/api/InboundOrder/GetGridJsonList', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};
//获取门店列表
export const shopData = (data) => {
    return new Promise((resolve, reject) => {
        api.get('/api/Shop/GetGridJson', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};
export const DataDetails = (data) => {
    return new Promise((resolve, reject) => {
        api.get('/api/InboundOrderDetails/GetGridJsonDetailList', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};

/* 提交表单数据，进行参数修改*/
export const postSubmitForm = (data) => {
    return new Promise((resolve, reject) => {
        api.post('/api/Setting/SubmitForm', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};
//表格导出
export const ExeclData = (data) => {
    return new Promise((resolve, reject) => {
        api.get("/api/InboundOrderDetails/ToExport", data)
            .then(res => {
                resolve(res);
            })
            .catch(err => {
                reject(err);
            });
    });
};